//
//  ByUserMyFeedbackVC.m
//  jinpuyiyuan_ios
//
//  Created by pro on 2017/12/18.
//  Copyright © 2017年 mc. All rights reserved.
//

#import "ByUserMyFeedbackVC.h"

#import "ByTextView.h"

@interface ByUserMyFeedbackVC ()

@end

@implementation ByUserMyFeedbackVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"意见反馈";
    [self addLeftBackBarButtonItem];
    [self createViews];
    self.view.backgroundColor = BY_TABLE_COLOR;
}

#pragma mark - create views
- (void)createViews{
    UIButton *commitButton = [[UIButton alloc] init];
    [self.view addSubview:commitButton];
    [commitButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@(0));
        make.size.mas_equalTo(CGSizeMake(SCREEN_WIDTH, 40));
        if (@available(iOS 11.0,*)) {
            make.bottom.equalTo(self.view.mas_safeAreaLayoutGuideBottom);
        }else{
            make.bottom.equalTo(self.view.mas_bottom);
        }
    }];
    [commitButton setTitle:@"提交" forState:UIControlStateNormal];
    [commitButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [commitButton setBackgroundColor:BY_THEME_COLOR];
    commitButton.titleLabel.font = FONT(14);
    
    ByTextView *textView = [[ByTextView alloc] init];
    [self.view addSubview:textView];
    [textView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@(0));
        if (@available(iOS 11.0,*)) {
            make.top.equalTo(self.view.mas_safeAreaLayoutGuideTop).offset(10);
        }else{
            make.top.equalTo(self.view.mas_top).offset(10);
        }
        make.size.mas_equalTo(CGSizeMake(SCREEN_WIDTH, 200));
    }];
    textView.placeholder = @"请输入您的宝贵意见，我们将积极改进";
    textView.placeholderTextColor = [UIColor lightGrayColor];
    textView.backgroundColor = [UIColor whiteColor];
    textView.font = FONT(14);
}


@end
